package com.srcptit.java.training.dungvv.btvn1;

import java.util.Scanner;

public class B2_USC {
	public static void main(String [] args){
		int a, b;
		Scanner sc = new Scanner(System.in);
		System.out.println("Moi ban nhap vao 2 so nguyen duong");
		a = sc.nextInt();
		b = sc.nextInt();
		while (a != b){
			if (a > b)
				a = a - b;
			else 
				b = b - a;
		}
		System.out.println("USCLN cua 2 so da cho la "+a);
	}
}
